define("pages/jls_xsqkdj/xsqkdjForm",[
        "../../plugins/easyui/jquery-easyui-1.5.1/jquery.easyui.min",
        "../../plugins/easyui/jquery-easyui-1.5.1/easyloader",
        "../../plugins/artTemplate/artTemplate",
        "../../common/tools",
        "../../common/componts",
        "../../common/kss",
    ],
    function (require) {
        var comonts=require("../../common/componts");
        var kss=require("../../common/kss");
        var jbxxId="jbxxId";
        var jbxx="jbxx";
        var id;
        var save = function(){
            var url = "/kss_qlywgz/saveGz";
            var validate=$("#dlg").form('validate');
            if (validate) {
                var data =$("#xsqkdj_form").serialize();
                console.log(data);
                submitLoad();
                $.ajax({
                    type : "POST",  //提交方式
                    url : url,
                    data : data,//数据，这里使用的是Json格式进行传输
                    success : function(result) {
                        if (result.success) {
                            $.messager.alert("确定","保存成功","info");
                            $('#dlg').window('close');
                        }else{
                            removeLoad();
                            $.messager.alert("确定","保存失败","info");
                        }
                    },
                    complete:function(){
                        removeLoad();
                    },
                });
            }else{
                $.messager.alert("提示", '必填项不能为空！');
            }
        }
        var bindAction=function(){
            $("#zrs_save").on("click",function(){
                save();
            });
            $("#zbsy_cancel").on("click",function(){
                window.location.href="/kss_xsqkdj/xsqkdj.html";
            });
        }
        bindAction();
});